﻿@*
@using PagedList
@model PagedList.IPagedList<TaoNiuOA.Models.Task>


<div style="width:auto;height:30px; margin-top:10px;text-align:center;">
    @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber)
    / @Model.PageCount
    &nbsp;
    @if (Model.HasPreviousPage)
    {
        @Html.ActionLink("首页", ViewData["actionName"].ToString(), new { page = 1, currentFilter = ViewBag.CurrentFilter })
        @Html.Raw("&nbsp;");
        @Html.ActionLink(" 上一页", ViewData["actionName"].ToString(), new { page = Model.PageNumber - 1, currentFilter = ViewBag.CurrentFilter })
    }
    else
    {
       @Html.Raw("首页&nbsp;&nbsp;上一页")
    }
    &nbsp;
    @if (Model.HasNextPage)
    {
        @Html.ActionLink("下一页 ",ViewData["actionName"].ToString(), new { page = Model.PageNumber + 1, currentFilter = ViewBag.CurrentFilter })
        @Html.Raw("&nbsp;");
        @Html.ActionLink(" 尾页", ViewData["actionName"].ToString(), new { page = Model.PageCount, currentFilter = ViewBag.CurrentFilter })
    }
    else
    {
       @Html.Raw("下一页&nbsp;&nbsp;尾页")
    }
</div>

*@ 